<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/10 0010
 * Time: 16:51
 */

namespace Cuke\Acl;


use Phalcon\Acl\RoleAware;

/**
 * 用户角色
 * @package Cuke\Acl
 */
class UserRole implements RoleAware
{
    protected $roleId;
    protected $roleName;

    public function __construct($roleId,$roleName)
    {
        $this->roleId       = $roleId;
        $this->roleName     = $roleName;
    }

    public function getRoleId()
    {
        return $this->roleId;
    }

    // Implemented function from RoleAware Interface
    public function getRoleName()
    {
       return $this->roleName;
    }


}